/**
 * @description 列表模型
 * @author 盘古他爹
 */

import { seq } from "../../db"
import { DataTypes,Sequelize } from "sequelize"
//狼人杀表
export const ListPandaKill = seq.define("list_panda_kill", {
    name: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: "人名"
    },
    label: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: "标签特征，用逗号分隔"
    },
    avatar: {
        type: DataTypes.STRING,
        comment: "头像"
    },
    trends: {
        type: DataTypes.TEXT,
        comment: "最近动态,数组形式，用逗号分隔"
    },
    video_thumbnail: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: "视频缩略图，里面包含视频"
    },
    status: {
        type:DataTypes.BOOLEAN ,
        allowNull: false,
        defaultValue: true,
        comment: "true表示该条数据存在，否则表示已删除"
    },
}, 
  
{
    freezeTableName: true
  })

export interface ILikeListOne {
    name: string,
    label: string[],
    avatar?: string,
    trends: string,
    video_thumbnail?:string,
    status: number
}